package cn.meye11.crm.mapper;

import cn.meye11.crm.domain.entity.ConsumptionTimesEntity;
import cn.meye11.crm.domain.query.ConsumptionTimesQuery;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
/**
 * 计次消费表(ConsumptionTimes)表数据库访问层
 * 
 * @author makejava
 * @since 2023-12-09 20:21:06
 */
@Repository
public interface ConsumptionTimesMapper extends Mapper<ConsumptionTimesEntity> {

    @SelectProvider(type = ConsumptionTimesProvider.class, method = "list")
    List<ConsumptionTimesEntity> list(ConsumptionTimesQuery query);
    
    @SelectProvider(type = ConsumptionTimesProvider.class, method = "count")
    Long count(ConsumptionTimesQuery query);
}
